Value interpolation issue with Python SQLite3 library